//
//  MYNewsDetailsHotelTitleCell.swift
//  MuYing
//
//  Created by tbb on 2019/8/6.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYNewsDetailsHotelTitleCell: MYNewsDetailsTitleBaseCell {
    @objc lazy var titleLb: UILabel = {
        let titleLb = UILabel();
        titleLb.font = UIFont.systemFont(ofSize: 20, weight: .medium);
        titleLb.textColor = UIColorFromHex(rgbValue: 0x79C4C7);
        titleLb.textAlignment = .left;
        titleLb.text = "---";
        return titleLb;
    }()
    
    @objc lazy var subLb: UILabel = {
        let subLb = UILabel();
        subLb.font = UIFont.systemFont(ofSize: 12, weight: .medium);
        subLb.textColor = UIColorFromHex(rgbValue: 0xA0A0A0);
        subLb.textAlignment = .left;
        subLb.text = "---";
        return subLb;
    }()
    
    override func layoutSubviews() {
        super.layoutSubviews();
        self.contentView.addSubview(self.titleLb);
        self.titleLb.mas_makeConstraints { (make) in
            make?.left.mas_equalTo()(12);
            make?.top.mas_equalTo()(19);
            make?.height.mas_equalTo()(28);
            make?.right.mas_lessThanOrEqualTo()(self.lookCountBtn.mas_left)?.mas_lessThanOrEqualTo()(-12);
        };
        
        self.contentView.addSubview(self.subLb);
        self.subLb.mas_makeConstraints { (make) in
            make?.left.mas_equalTo()(12);
            make?.top.mas_equalTo()(self.titleLb.mas_bottom)?.mas_equalTo()(0);
            make?.height.mas_equalTo()(17);
            make?.right.mas_lessThanOrEqualTo()(self.lookCountBtn.mas_left)?.mas_lessThanOrEqualTo()(-12);
        };
        
    }

}
